#define _CRT_SECURE_NO_WARNINGS 1
int GetHeight(BinTree BT)
{
    //int max_left=0;
    //int max_right=0;
    if (BT == NULL)
    {
        return 0;
    }

    //max_left=GetHeight(BT->Left);
    //max_right=GetHeight(BT->Right);
    //return (max_left>=max_right?max_left:max_right)+1;
    return 1 + (GetHeight(BT->Left) > GetHeight(BT->Right) ? GetHeight(BT->Left) : GetHeight(BT->Right));
}


/*int GetHeight( BinTree BT )
{
    int high_l = 0,high_r = 0;
    if(!BT)
        return 0;
    if(BT)
    {
        high_l = GetHeight(BT->Left);
        high_r = GetHeight(BT->Right);
        return (high_l >= high_r ? high_l:high_r) + 1;
    }
}*/